//
//  newsViewCell.m
//  OfferJob
//
//  Created by 河南动力无限科技有限公司 on 17/7/17.
//  Copyright © 2017年 郑州动力无限科技. All rights reserved.
//

#import "newsViewCell.h"

@implementation newsViewCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        

        
        _titleLB=[[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2-60*kAppScale, 25*kAppScale,120*kAppScale, 25*kAppScale)];
        _titleLB.textColor=[UIColor blackColor];
        _titleLB.backgroundColor=graybackColor;
        _titleLB.textAlignment=NSTextAlignmentCenter;
        _titleLB.font=[UIFont systemFontOfSize:13*kAppScale];
        [self.contentView addSubview:_titleLB];
        
        
        
        UIView* view=[[UIView alloc]initWithFrame:CGRectMake(10*kAppScale, _titleLB.bottom+10*kAppScale, SCREEN_WIDTH-20*kAppScale, 180*kAppScale)];
        view.layer.borderColor = [[UIColor lightGrayColor] CGColor];
        view.layer.borderWidth = 0.5;
        view.layer.cornerRadius = 3;
        [self.contentView  addSubview:view];
        

        
        _nameLB=[[UILabel alloc]initWithFrame:CGRectMake(5*kAppScale,10*kAppScale,view.width-10*kAppScale, 20*kAppScale)];
        _nameLB.textColor=blackTextColor;
        _nameLB.textAlignment=NSTextAlignmentLeft;
        _nameLB.font=[UIFont systemFontOfSize:16*kAppScale];
        [view addSubview:_nameLB];
        
        
        
        
        
        _conLB=[[UILabel alloc]initWithFrame:CGRectMake(5*kAppScale,_nameLB.bottom,view.width-10*kAppScale, 140*kAppScale)];
        _conLB.textColor=[UIColor blackColor];
        _conLB.textAlignment=NSTextAlignmentLeft;
        _conLB.numberOfLines=0;
        _conLB.font=[UIFont systemFontOfSize:14*kAppScale];
        [view addSubview:_conLB];
        
        UIView* vi=[[UIView alloc]initWithFrame:CGRectMake(0*kAppScale,view.bottom+10*kAppScale, SCREEN_WIDTH, 10*kAppScale)];
        vi.backgroundColor=backgroundcolor;
        [self.contentView  addSubview:vi];
        

    }
    return self;
}


@end
